<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Simditor</title>
	<link rel="stylesheet" type="text/css" href="styles/simditor.css" />

	<script type="text/javascript" src="scripts/jquery.min.js"></script>
	<script type="text/javascript" src="scripts/module.js"></script>
	<script type="text/javascript" src="scripts/hotkeys.js"></script>
	<script type="text/javascript" src="scripts/uploader.js"></script>
	<script type="text/javascript" src="scripts/simditor.js"></script>
</head>
<body>
<form name="form" method="post" action="/manage/simditor/upload.do">
	<textarea id="editor" name="introduce" placeholder="Balabala" autofocus></textarea>
	<button type="submit">提交</button>
</form>
</body>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
	var editor = new Simditor({
	  textarea: $('#editor'),
	  //optional options
	  placeholder: '',
	  defaultImage: 'images/image.png',
	  params: {},
	  upload: {
	  	url: '/manage/product/richtext_img_upload.do',
    	params:null,
    	fileKey: 'upload_file',
    	connectionCount: 3,
    	leaveConfirm: 'Uploading is in progress, are you sure to leave this page?'
	  },
	  tabIndent: true,
	  toolbar: true,
	  toolbarFloat: true,
	  toolbarFloatOffset: 0,
	  toolbarHidden: false,
	  pasteImage: false,
	  cleanPaste: false
	});
</script>
</html>